<!--
  ~ This program is part of the OpenLMIS logistics management information system platform software.
  ~ Copyright © 2013 VillageReach
  ~
  ~ This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  ~  
  ~ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.
  ~ You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses.  For additional information contact info@OpenLMIS.org. 
  -->

<div class="login-container">
    <div class="modal-login-header">
        <h1 openlmis-message="label.app.header"></h1>
        <ng-include src="'/public/pages/locale-list.html'"/>
    </div>

    <div class="login-form" ng-controller="LoginController">
        <h2 id="signInLabel" openlmis-message="label.sign.in"></h2>

        <form ng-submit="doLogin()" novalidate>
            <fieldset>
                <div class="login-form-row">
                    <input ng-model="username" type="text" id="username" openlmis-message="placeholder.username"
                           required
                           autofocus/>
                </div>
                <div class="login-form-row">
                    <input ng-model="password" type="password" id="password" openlmis-message="placeholder.password"
                           required/>
                </div>
                <div id="loginError" class="alert alert-error" ng-bind="loginError" ng-show="loginError"></div>
                <div class="login-form-row">
                    <input class="btn btn-primary" type="submit" openlmis-message="button.sign.in"
                           ng-disabled="disableSignInButton"/>
                </div>
                <div class="login-form-row forgot-link">
                    <a id="forgotPasswordLink" href="" ng-click="goToForgotPassword()"
                       openlmis-message="link.forgot.password"></a>
                </div>
            </fieldset>
        </form>
    </div>
    <div class="powered-by">
        Powered by <a href="http://openlmis.org" target="_blank">OpenLMIS</a> v@major_version@.@minor_version@.@patch_version@ build @build_version@
    </div>
</div>

